import request from '@/utils/requestUtil'

// 获取所有帖子
export function getPostsList() {
	return request({
		method: 'GET',
		url: '/health/posts/list',
		header: {
			'content-type': 'application/json;charset=utf-8'
		}
	})
}

// 查询帖子详情
export function getPostsDetail(id) {
	return request({
		method: 'GET',
		url: '/health/posts/' + id,
		header: {
			'content-type': 'application/json;charset=utf-8'
		}
	})
}